package com.bootdo.hjh.vo;

/**
 * Created by qingyong on 2018/4/14.
 */
public class GroupInfo {

    private int count;

    private String amount = "0.00";

    private GroupInfo(Builder builder) {
        setCount(builder.count);
        setAmount(builder.amount);
    }

    public static Builder newBuilder() {
        return new Builder();
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public String getAmount() {
        return amount;
    }

    public void setAmount(String amount) {
        this.amount = amount;
    }

    @Override
    public String toString() {
        return "GroupInfo{" +
                "count=" + count +
                ", amount='" + amount + '\'' +
                '}';
    }

    public static final class Builder {
        private int count;
        private String amount;

        private Builder() {
        }

        public Builder count(int val) {
            count = val;
            return this;
        }

        public Builder amount(String val) {
            amount = val;
            return this;
        }

        public GroupInfo build() {
            return new GroupInfo(this);
        }
    }


}
